package lab10.com.acme;

public class BankApplication
{
	public static void main(String[] args)
	{
		ClientRegistrationListener[] crls = new ClientRegistrationListener[2];
		crls[0] = new PrintClientListener();
		crls[1] = new EmailNotificationListener();
		
		Bank myBank = new Bank(10, crls);
		
		for (int i = 0; i < 10; i++)
		{
			Client newClient;
			if (i % 2 == 0)
			{
				newClient = new Client(Integer.toString(i), Gender.MALE);
				newClient.addAccount(new SavingAccount(100 + i * 10));
			}
			else
			{
				newClient = new Client(Integer.toString(i), Gender.FEMALE);
				newClient.addAccount(new CheckingAccount(100 + i * 10, 100));
			}
			myBank.addClient(newClient);
		}
	}
		
}
